package actions.commandsmap

import actions.commandsmap.commands.Command
import actions.commandsmap.commands.TypeCommand
import dsl.parameters.Parameter

class BaseMapper implements Mapper {

    Map<Parameter, Command> mapParametersCommands(List<Parameter> parameters) {
        Map<Parameter, Command> commandsMap = new HashMap<Parameter, Command>();

        parameters.each {
            commandsMap.put(it, new TypeCommand(it.value, it.name))
        }

        return commandsMap
    }
}
